import Vue from 'vue'
import axios from 'axios'

import App from './App'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VueContextMenu from '@xunlei/vue-context-menu'

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios
Vue.config.productionTip = false
/* 忽略浏览器警告 */
process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'
/*
 element-ui
*/
Vue.use(ElementUI)
/*
 右键点击菜单
 */
Vue.use(VueContextMenu)
/* eslint-disable no-new */
new Vue({
  components: {App},
  router,
  store,
  template: '<App/>'
}).$mount('#app')
